disable csrf token django

37

disable csrf token django -

from django.views.decorators.csrf import csrf_exempt

@csrf_exempt
def my_view(request):
    return HttpResponse('Hello world')

Comments

Submit
0 Comments